﻿using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using ThridGroup.ERP.DTO.ProductionSystemDto.CustomerOrderDto;
using Volo.Abp.Application.Services;

namespace ThridGroup.ERP.ProductionSystem
{
    /// <summary>
    /// 客户订单服务接口
    /// </summary>
    public interface ICustomerOrderServices: IApplicationService
    {

        /// <summary>
        /// 显示客信息
        /// </summary>
        /// <param name="canGetCustomerDto"></param>
        /// <returns></returns>
       Task<List<QueryCustomerModelDto>> QueryCustomer(GetCustomerDto canGetCustomerDto);
        /// <summary>
        /// 添加客户订单
        /// </summary>
        /// <param name="dto">客户订单DTO</param>
        /// <returns>1成功，0失败</returns>
        Task<int> CreateCustomerOrder(CustomerOrderlistDto dto);

        /// <summary>
        /// 查询客户订单（分页/条件）
        /// </summary>
        /// <param name="queryDto">查询参数</param>
        /// <returns>客户订单列表</returns>
        Task<List<CustomerOrderlistDto>> QueryCustomerOrder(GetCustomerOrderDto queryDto);

        /// <summary>
        /// 修改客户订单
        /// </summary>
        /// <param name="dto">修改DTO</param>
        /// <returns>1成功，0失败</returns>
        Task<int> UpdateCustomerOrder(UpdateCustomerOrderDto dto);

        /// <summary>
        /// 批量删除客户订单
        /// </summary>
        /// <param name="ids">要删除的订单ID列表</param>
        /// <returns></returns>
        Task BatchDeleteCustomerOrder(List<int> ids);
    }
}
